/*
 * Device.h
 *
 *  Created on: Nov 28, 2011
 *      Author: sxzhang
 */

#ifndef DEVICE_H_
#define DEVICE_H_

class DeviceBase{

	const unsigned short hostRank;
	const unsigned short devId;

	//get device count
	virtual unsigned short getDeviceCount()=0;

	//function solve a task
	virtual void solver() = 0;

	//function execute a task.
	virtual void exec() = 0;
};

#endif /* DEVICE_H_ */
